<?php 
	$html->css("userSettings", null, array("inline"=>false));
	$html->script("userSettings",false); 
?>
<div id="setting">	
	<h2>Settings</h2>
	<fieldset>
		<legend>User Settings Form</legend>
		<table>
			<tr>
				<th>Photo</th>
				<td>
					<?php echo $form->create('User',array('action'=>'avatar','enctype' => 'multipart/form-data'));?>
					<div class="imgWrap"><img src="/dorimeme/app/webroot/img/usericon/profile_82x82.jpg"></div>
					<?php
					 	echo $form->file('photo');
					 	echo $form->end();
					?>
				</td>
			</tr>
			<?php echo $form->create('User',array('action'=>'settings'));?>
			<tr>
				<th>URL</th>
				<td>
					<?php echo $form->input('url'); ?>
				</td>
			</tr>
			<tr>
				<th>Language</th>
				<td>
					<?php echo $form->input('Language', array('options' => array('English','Chinese'))); ?>
				</td>
			</tr>
			<tr>
				<th>Time Zone</th>
				<td>
					<?php echo $form->input('Time Zone', array('options' => array('GMT -5:00 (US & Canada)','GMT +8:00 (China)'))); ?>
				</td>
			</tr>
		</table>
		<?php echo $form->end('Save') ?>
	</fieldset>
</div>
<script type="text/javascript">
	var tab = new TabState('#tab');
	tab.changeCurrent(-1);
</script>